using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Mean.Net
{
    public partial class frmPercentFinder : Form
    {
        public frmPercentFinder()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            decimal percentage;
            string percentageStr;
         
            percentage = Convert.ToDecimal(Convert.ToDecimal(txtCorrect.Text) / Convert.ToDecimal(Convert.ToDecimal(txtTotal.Text)));
            percentageStr = Convert.ToString(percentage);
            percentageStr.Replace(".","");
            MessageBox.Show(percentageStr);
            txtCorrect.Clear();
            txtTotal.Clear();
        }
    }
}